﻿//-----------------------------------------------------------------------
// <copyright file="BidderTestHelper.cs" company="Transilvania University of Brasov">
//     Copyright (c) Nagy Robert. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace TestDataAccessLayer.Helpers
{
    using DataAccessLayer.Auctioneer;
    using DomainModel;

    /// <summary>
    /// Useful methods for bidder tests.
    /// </summary>
    public static class BidderTestHelper
    {
        /// <summary>
        /// The repository
        /// </summary>
        private static IBidderRepository repository = new BidderRepository();

        /// <summary>
        /// Creates the database entry.
        /// </summary>
        /// <returns>DTO for created entry.</returns>
        public static DTOBidder CreateDatabaseEntry()
        {
            DTOBidder dto = new DTOBidder
            {
                FirstName = "FirstName",
                LastName = "LastName",
                Password = "Password",
                Username = "Username"
            };

            repository.Add(dto);

            return dto;
        }
    }
}
